package edu.ads.bookloan

class Book {
	String title
	Publisher publisher
	Integer yearOfEdition
	
	static belongsTo = [Author,Publisher]
	static hasMany = [authors: Author,degrees: Degree]
    static constraints = {
		title blank: false, maxSize: 300
		yearOfEdition range: 1455 .. 2012
    }
	
	String toString(){
		title
	}
}
